<%@page import="com.kaishengit.entity.Log"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include  file="include/topbar.jsp"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<!DOCTYPE HTML >
<html>
  <head>
    <title>网上银行-首页</title>
    <link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
	<script type="text/javascript" src="js/jQuery.js"></script>
	<script type="text/javascript" src="js/bootstrap.min.js"></script>
	<style style="text/css">
		body{
			margin-top: 70px;
		}
		.green{
			color:green;
		}
		.red{
			color: red;
		}
	</style>
  </head>
  <body>
  	<div class="container">
  		<div class="span2">
          <div class="well sidebar-nav" style="padding-left:0px;padding-right:0px">
            <ul class="nav nav-list">
              <li class="nav-header">操作</li>
              <li ><a href="main.jspx">首页</a></li>
              <li><a href="account.jspx?m=get">取款</a></li>
              <li ><a href="account.jspx?m=save">存款</a></li>
              <li ><a href="account.jspx?m=tran">转账</a></li>
              <li class="active"><a href="note.jspx">备注</a></li>
              <li class="nav-header">Sidebar</li>
              <li><a href="#">Link</a></li>
              <li><a href="#">Link</a></li>
              <li><a href="#">Link</a></li>
            </ul>
          </div>
        </div>  
		
		<div class="span9">
			<form class="form-horizontal">
		        <fieldset>
		          <legend>操作记录</legend>
					<table class="table table-striped">
			        <thead>
			          <tr>
			            <th width="5%">#</th>
			            <th width="25%">时间</th>
			            <th width="15%" class="red">取钱</th>
			            <th width="15%" class="green">存钱</th>
			            <th>操作记录</th>
			            <th width="15%">余额</th>
			          </tr>
			        </thead>
			        <tbody>
			        
			        <c:if test="${fn:length(requestScope.loglist) == 0 }">
			        	<tr>
			        		<td colspan="6">暂时没有记录</td>
			        	</tr>
			        </c:if>
			         <c:forEach items="${requestScope.loglist }" var="log" varStatus="s">
			          <tr>
			            <td >${s.count }</td>
			            <td >${log.nowtime }</td>
			            <td class="red">${log.getmoney == 0 ? "" : log.getmoney }</td>
			            <td class="green">${log.savemoney == 0 ? "" : log.savemoney }</td>
			            <td>${empty log.note ? "" : log.note }</td>
			            <td>${log.balance} </td>
			          </tr>
			          </c:forEach>
			        </tbody>
			      </table>		          	
		        </fieldset>
		      </form>
		</div>        	
  	</div>
  </body>
</html>
